<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>平均成绩</title>
	<script>
		//循环输入5门课的成绩,平均分
		var sum=0;
		for(var i=1;i<=5;i++){
			var score=Number(prompt('请输入第'+i+'课程的成绩'));
			sum+=score;
		}
		 var avg=sum/5
		 console.log(avg);

	</script>
</head>
<body>
	
</body>
</html>